package com.niit.session12.inter;
//继承了类之后，还可以实现接口
public class Frog extends Animal implements Swim{

	public Frog() {
		super();
	}

	public Frog(String name, int age) {
		super(name, age);
	}

	@Override
	public void swim() {
		System.out.println("蛙泳");
		
	}
	

}
